/* styles.css */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding-bottom: 80px; /* 留出底部导航栏空间 */
}

.dark-mode {
    background-color: #1f2937;
    color: #f1f5f9;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

.dark-mode .card {
    background-color: #374151;
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-red {
    background-color: #ef4444;
    color: white;
}

.btn-red:hover {
    background-color: #dc2626;
}

.btn-yellow {
    background-color: #f59e0b;
    color: white;
}

.btn-yellow:hover {
    background-color: #d97706;
}

.btn-small {
    padding: 8px 12px;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.dark-mode th, .dark-mode td {
    border-bottom: 1px solid #4b5563;
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.dark-mode th {
    background-color: #4b5563;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}

.dark-mode .bottom-nav {
    background-color: #1f2937;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
}

.nav-item.active {
    color: #007bff;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .card {
        padding: 12px;
    }

    th, td {
        padding: 8px;
        font-size: 14px;
    }

    .btn {
        padding: 12px;
        font-size: 16px;
    }

    input, select, textarea {
        font-size: 16px;
        padding: 12px;
    }
}
.btn-custom {
        display: inline-block;
            padding: 0.5rem 1rem; /* py-2 px-4 */
                font-size: 1.125rem; /* 加大文字 */
                    border-radius: 9999px; /* 圆角 */
                        transition: all 0.3s ease; /* 过渡效果 */
                            background: transparent; /* 无背景 */
                            }

                            .card-recent th, .card-recent td {
                                padding: 0.75rem 0.5rem;
                                    text-align: center;
                                        white-space: nowrap;
                                        }

                                        .overflow-x-auto {
                                            overflow-x: auto;
                                                -webkit-overflow-scrolling: touch;
                                                }
}